翻訳と辞書 |
K-approximation of k-hitting set : ウィキペディア英語版 | K-approximation of k-hitting set In computer science, k-approximation of k-hitting set is an approximation algorithm for weighted hitting set. The input is a collection ''S'' of subsets of some universe ''T'' and a mapping ''W'' from ''T'' to non-negative numbers called the weights of the elements of ''T''. In k-hitting set the size of the sets in ''S'' cannot be larger than ''k''. That is, . The problem is now to pick some subset ''T''' of ''T'' such that every set in ''S'' contains some element of ''T''', and such that the total weight of all elements in ''T''' is as small as possible. ==The algorithm== For each set in ''S'' is maintained a ''price'', , which is initially 0. For an element ''a'' in ''T'', let ''S''(''a'') be the collection of sets from ''S'' containing ''a''. During the algorithm the following invariant is kept : We say that an element, ''a'', from ''T'' is ''tight'' if . The main part of the algorithm consists of a loop: As long as there is a set in ''S'' that contains an element from ''T'' which is not tight, the price of this set is increased as much as possible without violating the invariant above. When this loop exits, all sets contain some tight element. Pick all the tight elements to be the hitting set.
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「K-approximation of k-hitting set」の詳細全文を読む
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|